function Add-Host
{
	param([string]$hostName)

	$f = $env:windir + "\System32\drivers\etc\hosts"

	$hostEntry = select-string "$hostName" $f
	if ($hostEntry -isnot [object]) { "127.0.0.1   $hostName" | Add-Content $f}
}

Add-Host www.litwarehr.com
Add-Host www.litware.com
Add-Host services.litwarehr.com
Add-Host www.contoso.com
Add-Host www.fabrikam.com
